<cfif StructKeyExists(request, "qryBlog")><cfif StructKeyExists(application, "search_catalog")>
            <div id="search" class="poddy">
                <h2 class="top-align">Search</h2>
                <form action="/" method="get">
                <input type="text" name="search" style="width: 90%; margin: 0.5em 0" value="<cfif StructKeyExists(attributes, "search")><cfoutput>#HTMLEditFormat(attributes.search)#</cfoutput></cfif>"><br>
                <cfoutput><input type="hidden" name="blogid" value="#request.qryBlog.blog_id#"></cfoutput>
                <input type="hidden" name="layout" value="blog.search">
                <input type="submit" value="search" style="margin: 0.5em 0">
                </form>
            </div>
<cfelse><!-- no search catalog defined in application.cfc --->
</cfif></cfif>